﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Comisiones.Models
{
    public class RangoTipoTrans
    {
        //Llaves primarias y foraneas
        [Key, Column(Order = 0)]public int rtt_idRango { get; set; }
        [Key, Column(Order = 1)]public int ttx_idTipo { get; set; }
        [Key, Column(Order = 2)]public int tar_idTarifario { get; set; }
        
        //atributos
        public int? desde { get; set; }
        public int? hasta { get; set; }

        //objetos correspondientes a las llaves primarias y foraneas
        [ForeignKey("ttx_idTipo")]
        public TipoTransaccion tipoTransaccion { get; set; }
        [ForeignKey("tar_idTarifario")]
        public Tarifario tarifario { get; set; }

    }
}